import cjs=createjs
import OptionModel from "../model/OptionModel";
import BaseController from "./BaseController";
/**
 * 层级控制
 */
export default class LayerController extends BaseController {
    private _bg_layer:cjs.Container
    /** 背景层 */
    get bg_layer(){
        return this._bg_layer;
    }
    private _game_layer:cjs.Container
    /**
     * 游戏层
     */
    get game_layer(){
        return this._game_layer;
    }
    private _ui_layer:cjs.Container
    /**
     * UI层
     */
    get ui_layer(){
        return this._ui_layer;
    }
    private _top_layer:cjs.Container
    /**
     * 最上层
     */
    get top_layer(){
        return this._top_layer;
    }
    init(option:OptionModel){
        super.init(option);
        //背景层
        this._bg_layer = new cjs.Container();
        this.root.addChild(this._bg_layer);
        //游戏层
        this._game_layer = new cjs.Container();
        this.root.addChild(this._game_layer);
        //UI层
        this._ui_layer = new cjs.Container();
        this.root.addChild(this._ui_layer);
        //最上层
        this._top_layer = new cjs.Container();
        this.root.addChild(this._top_layer);
    }
}